<template>
  <div>
    <div class="container">
      <!-- title -->
      <div class="title">
        <b>退款审核管理</b>
      </div>
      <!-- 查询条件 -->
      <div class="condition">
        <el-row :gutter="10">
          <el-col :span="8">
            <div class="condition_box">
              <span>售后编号：</span>
              <el-input
                v-model="text1"
                type="number"
                clearable
                class="num_text"
                placeholder="请输入订单编号"
              ></el-input>
            </div>
          </el-col>
           <el-col :span="8">
            <div class="condition_box">
              <span>订单编号：</span>
              <el-input
                v-model="text1"
                type="number"
                clearable
                class="num_text"
                placeholder="请输入订单编号"
              ></el-input>
            </div>
          </el-col>
          <el-col :span="8">
            <div class="condition_box" style="float:center">
              <span>用户名称：</span>
              <el-input
                v-model="text2"
                type="text"
                clearable
                placeholder="请输入用户名称"
              ></el-input>
            </div>
          </el-col>
         
        </el-row>
      </div>
      <div class="condition" style="margin-top:20px">
        <el-row :gutter="10">
          <el-col :span="7">
            <div class="condition_box" >
              <span>售后状态：</span>
              <el-select v-model="value" placeholder="请选择状态">
                <el-option
                  v-for="item in options"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
                ></el-option>
              </el-select>
            </div>
          </el-col>
          <el-col :span="9">
            <div class="condition_box">
              <span>退款时间：</span>
              <el-date-picker
                v-model="start"
                type="date"
                placeholder="选择开始日期"
                value-format="yyyy-MM-dd"
               style="width:150px"
              >
              </el-date-picker>
              <span style="padding:0 10px">-</span>
              <el-date-picker
                v-model="end"
                type="date"
                placeholder="选择结束日期"
                value-format="yyyy-MM-dd"
                 style="width:150px"
              >
              </el-date-picker>
            </div>
          </el-col>
          <el-col :span="8">
            <div class="condition_box" style="float:right">
              <span>绑定分拥人：</span>
              <el-input
                v-model="text2"
                type="text"
                clearable
                placeholder="请输入"
              ></el-input>
            </div>
          </el-col>
        </el-row>
      </div>
      <!-- 操作按钮 -->
      <div class="btn_control">
        <el-row>
          <el-col :span="19"><div class="grid-content"></div></el-col>
          <el-col :span="5">
            <el-button size="mini">查询</el-button>
            <el-button size="mini">重置</el-button>
            <el-button size="mini">刷新</el-button>
          </el-col>
        </el-row>
      </div>
      <!-- 表单 -->
      <div class="table_box">
        <el-row>
          <el-col :span="24">
            <el-table
              :data="tableData"
              border
              style="width: 100%"
              :header-cell-style="{
                textAlign: 'center',
              }"
              :cell-style="{ textAlign: 'center' }"
              stripe
            >
              <el-table-column prop="name" label="售后编号"></el-table-column>
              <el-table-column prop="name" label="订单编号"></el-table-column>
              <el-table-column prop="title" label="买家名称"></el-table-column>
              <el-table-column prop="tap" label="联系电话"></el-table-column>
              <el-table-column prop="price" label="售后状态"></el-table-column>
              <el-table-column prop="date" label="下单时间" sortable></el-table-column>
              <el-table-column label="操作">
                <template slot-scope="scope">
                  <el-button type="text">详情</el-button>
                </template>
              </el-table-column>
            </el-table>
          </el-col>
        </el-row>
      </div>
      <!-- 导航 -->
      <div class="nav">
        <el-pagination
          @size-change="handleSizeChange"
          @current-change="handleCurrentChange"
          :current-page="4"
          :page-sizes="[100, 200, 300, 400]"
          :page-size="100"
          layout="total, sizes, prev, pager, next, jumper"
          :total="400"
        >
        </el-pagination>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      //
      options: [
        { value: "已发布", label: "已发布" },
        { value: "已下架", label: "已下架" },
      ],
      value: "",
      //
      tableData: [
        {
          name: "1388138000",
          title: "mosen",
          tap: "已发布",
          activity: "活动商品",
          price: "888",
          date:"2017-10-31"
        },
         {
          name: "1388138001",
          title: "mono",
          tap: "潜在用户",
          activity: "活动商品",
          price: "999",
          date:"2015-11-31"
        },
      ],
      file: "",
      text1: "",
      text2: "",
      start: "",
      end: "",
    };
  },
  methods: {
    handleSizeChange(val) {
      console.log(`每页 ${val} 条`);
    },
    handleCurrentChange(val) {
      console.log(`当前页: ${val}`);
    },
  },
};
</script>

<style>
.container {
  background: #fff;
  width: 90%;
  height: 580px;
  border-top: 2px solid #ededed;
  padding: 20px 40px;
  margin: 0 auto;
}
.title {
  margin-bottom: 40px;
  font-size: 20px;
}
.grid-content {
  border-radius: 4px;
  min-height: 36px;
  background: #d3dce6;
}
.condition_box .el-input {
  width: 220px;
}
.condition_box span {
  font-size: 14px;
}
.btn_control {
  margin-top: 20px;
}
.btn_control i {
  padding: 0 5px;
}
.del {
  color: red;
}
.el-table span {
  margin: 0 10px;
}
/* table */
.btn_control .el-button {
  margin-right: 15px;
}
/* 清除el-input-type：number图标样式 */
.num_text input::-webkit-outer-spin-button,
.num_text input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
.num_text input[type="number"] {
  -moz-appearance: textfield;
}
/* table_box */
.table_box {
  margin-top: 30px;
}
.nav {
  float: right;
  margin-top: 20px;
}
</style>
